package com.puris.service.student;

import com.mysql.cj.Session;
import com.puris.pojo.Competition;
import com.puris.pojo.Student;

import javax.servlet.http.HttpSession;
import java.sql.SQLException;

/**
 * @author Sonata
 * @data 2021/11/13 15:14
 */
public interface Service {
    public Student login(String id, String password, HttpSession session);

    public boolean changePwd(HttpSession session, String oldPassword, String newPassword);

    public StringBuffer selectCompetition();

    public String joinCompetition(String studentId, String competitionId) throws SQLException;

    public boolean exitCompetition(String id) throws SQLException;
}
